package com.example.mntz.service;

import com.example.mntz.model.Cm;
import com.example.mntz.model.LayuiTable;
import com.example.mntz.model.Post;
import com.example.mntz.model.PostBq;

import java.util.List;

public interface PostService {
    List<PostBq> selectbq(PostBq bq);

    LayuiTable selectposts(int limit, int page, String title, String[] bqs,Integer uid,Integer postStatu,String username);

    Integer selectpostscount(String title, String[] bqss, Integer uid,Integer poststatu);

    Post selectPost(int postid);

    LayuiTable<Cm> postcm(int postid, int limit, int page);

    void insterPostcm(Cm cm);

    int selectcountcm(Integer postid,Integer userId);

    String insterPostDz(Integer postid, Integer userId);

    String deletePostDz(Integer postid);

    void insterPost(Post post);

    void updatePost(Post post);
}
